libs/foreignmemory: Avoid printing an error for ENOTSUPP
authorJulien Grall <julien.grall@arm.com>
Mon, 13 Aug 2018 17:33:25 +0000 (18:33 +0100)
committerWei Liu <wei.liu2@citrix.com>
Wed, 15 Aug 2018 09:26:21 +0000 (10:26 +0100)
commit80cdb33cb7a96c3355b35ec620f1798fe3be1048
tree276119444102c2d889a185697c01a4bb595c3f94
parent47bc2c29b5a875e5f4abd36f2cb9faa594299f6c
libs/foreignmemory: Avoid printing an error for ENOTSUPP

Resource mapping is not supported on Arm and results to an error message
at every guest boot:

xenforeignmemory: error: ioctl failed: Operation not supported

Hide the error message when errnor is ENOTSUPP.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Paul Durrant <paul.durrant@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libs/foreignmemory/linux.c